﻿using System.Text;
using System.Windows;

namespace QuickFill
{
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            LoadLicense();
        }

        private void LoadLicense()
        {
            // 注册字符集提供程序
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

            // 示例：验证是否成功加载 GBK 编码
            Encoding gbk = Encoding.GetEncoding("GBK");
            Console.WriteLine("GBK 编码已加载：" + gbk.EncodingName);
        }
    }
}